package com.smart.community.order.common.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class CartDTO {
    /**
     * 主键
     */
    @TableId(value = "cart_id", type = IdType.INPUT)
    private Long cartId;

    /**
     * 商品ID
     */
    @TableField(value = "product_id")
    private Long productId;

    /**
     * 会员ID
     */
    @TableField(value = "member_id")
    private Long memberId;

    /**
     * 购买数量
     */
    @TableField(value = "quantity")
    private Integer quantity;

    /**
     * 商品主图
     */
    @TableField(value = "product_pic")
    private String productPic;

    /**
     * 商品名称
     */
    @TableField(value = "product_name")
    private String productName;

    /**
     * 商品副标题（卖点）
     */
    @TableField(value = "product_sub_title")
    private String productSubTitle;

    /**
     * 商品sku条码
     */
    @TableField(value = "product_sku_code")
    private String productSkuCode;

    /**
     * 会员昵称
     */
    @TableField(value = "member_nickname")
    private String memberNickname;

    /**
     * 添加到购物车的价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 商品分类
     */
    @TableField(value = "product_category_id")
    private Long productCategoryId;

    /**
     * 商品品牌名
     */
    @TableField(value = "product_brand")
    private String productBrand;

    /**
     * 商品编码
     */
    @TableField(value = "product_sn")
    private String productSn;

    /**
     * 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"128G"}]
     */
    @TableField(value = "product_attr")
    private String productAttr;


}
